package com.insideClass.TypeMessage.reflect;

import com.sun.org.apache.xpath.internal.objects.XNull;

import java.util.List;
import com.insideClass.TypeMessage.reflect.*;
/**
 * @author 13699
 */
public interface Robot {
    String name();
    String model();
    List<Operation> operation();
    class Test{
        public static void test(Robot r){
            if(r instanceof NULL){
                System.out.println("[NULL Robot]");
            }
            System.out.println("Robot name:"+r.name());
            System.out.println("Robot model"+r.model());
            for (Operation operation:
                 r.operation()) {
                System.out.println(operation.description());
                operation.command();
            }
        }
    }
}
